package com.bright.service;

import com.bright.pojo.Blog;
import com.bright.pojo.Tag;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface TagService {
    Tag saveTag(Tag tag);

    Tag getTag(long id);

    Page<Tag> getTags(Pageable pageable);

    List<Tag> listTag(String ids);

    List<Tag> listTagTop(Integer size);

    List<Blog> listTagBlog(long id);

    Tag update(long id,Tag tag);

    void delete(long id);

    Tag getTagByName(String tagname);
}
